package com.cloud.drore.eboss.supplier.mapper;

import com.cloud.drore.eboos.common.base.MyMapper;
import com.cloud.drore.eboos.common.entity.supplier.TicketStock;
import com.cloud.drore.eboss.supplier.entity.vo.TicketStockVo;
import com.cloud.drore.eboss.supplier.mapper.provider.TicketStockProvider;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;

import java.util.List;

/**
 * 浙江卓锐科技股份有限公司 版权所有  Copyright 2018<br>
 *
 * @Description: <br>
 * @Project: eboos <br>
 * @CreateDate: Created in 2018/1/8 16:22 <br>
 * @Author: <a href="575842778@qq.com">郑永涛</a>
 */
public interface TicketStockMapper extends MyMapper<TicketStock> {

    @UpdateProvider(type = TicketStockProvider.class, method = "updateTicketStockByParam")
    int updateTicketStockByParam(TicketStock ticketStock);

    @SelectProvider(type = TicketStockProvider.class, method = "selectTicketStockOneToday")
    List<TicketStockVo> selectTicketStockOneToday(TicketStock ticketStock);

    @SelectProvider(type = TicketStockProvider.class, method = "selectByParam")
    List<TicketStock> selectByParam(TicketStock ticketStock);

}